package com.ys.erp.entity.data.bean;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author lwj
 * @date 2023/12/18
 */
    
@Data
@TableName(value = "t_complaint")
public class Complaint {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 猫咪编号
     */
    @TableField(value = "cat_code")
    private String catCode;

    @TableField(value = "shop_code")
    private String shopCode;

    @TableField(value = "shop_name")
    private String shopName;

    /**
     * 客诉日期
     */
    @TableField(value = "complaint_date")
    private LocalDateTime complaintDate;

    /**
     * 猫咪钱包id
     */
    @TableField(value = "user_cat_id")
    private Long userCatId;

    /**
     * 0主动回访1被动咨询
     */
    @TableField(value = "seek_type")
    private Integer seekType;

    /**
     * 0猫咪健康问题，1商城问题，2门店问题，3其他问题
     */
    @TableField(value = "problem_type")
    private Integer problemType;

    /**
     * 0健康，1耳科疾病，2皮肤科疾病，3呼吸道疾病，4消化肠胃泌尿生殖疾病，5其它
     */
    @TableField(value = "disease_type")
    private String diseaseType;

    /**
     * 疾病json
     */
    @TableField(value = "disease_info")
    private String diseaseInfo;

    /**
     * 问题内容
     */
    @TableField(value = "problem_content")
    private String problemContent;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;

    /**
     * 处理结果
     */
    @TableField(value = "dispose_result")
    private String disposeResult;

    /**
     * 处理进程，0未处理，1已回复待跟踪，2完毕
     */
    @TableField(value = "dispose_status")
    private Integer disposeStatus;

    /**
     * 附件
     */
    @TableField(value = "annex_file")
    private String annexFile;

    @TableField(value = "version")
    @Version
    private Integer version;

    @TableField(value = "create_time")
    private LocalDateTime createTime;

    @TableField(value = "update_time", update = "now()")
    private LocalDateTime updateTime;
}